home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / MiniGL / Build / Makefile < prev    next >
Encoding:
Makefile  |  2000-04-11  |  1.8 KB  |  75 lines

  1. # $Id: Makefile,v 1.1.1.1 2000/04/07 19:44:48 tfrieden Exp $
  2. # $Date: 2000/04/07 19:44:48 $
  3. # $Revision: 1.1.1.1 $
  4. # (C) 1999 by Hyperion
  5. # All rights reserved
  6. # This file is part of the MiniGL library project
  7. # See the file Licence.txt for more details
  8.  
  9. VPATH = ../src/ ../demos
  10. INCLUDE = -I../include -I/Warp3d/include
  11. CFLAGS = $(INCLUDE)  -m68060 $(DEBUG) #-Wa,-mno-68882 -Wa,-mno-68881 # -noixemul
  12. CFLAGS2= $(INCLUDE)  -m68060 $(DEBUG)
  13. DEBUG = -g -gstabs
  14. LIBNAME = ../lib/libmgl.a
  15. EXENAME = ../GLTest
  16. INSTALLPATH = /usr
  17.  
  18. DEMOS = ../bounce ../GLTest ../texsub ../gears ../smtest ../warp
  19.  
  20. CC = gcc -O2 -Wimplicit-function-dec
  21.  
  22. AR = ar
  23. RANLIB = ranlib
  24.  
  25. LIBOBJ = matrix.o context.o vertexbuffer.o draw.o texture.o fog.o hclip.o others.o init.o glu.o
  26.  
  27. EXEOBJ = GLTest.o
  28.  
  29. all: $(LIBNAME) $(DEMOS)
  30.  
  31. clean:
  32.     -rm *.o ../GLtest ../lib/libmgl.a
  33.  
  34. %.o: %.c
  35.     $(CC) $(CFLAGS) -c $<
  36.  
  37. lib: $(LIBNAME)
  38.     @echo "Done"
  39.  
  40. ../bounce: bounce.o init.o $(LIBNAME)
  41.     gcc -g -o ../bounce bounce.o init.o -L$(INSTALLPATH)/lib -L../lib -lmgl -lm -ldebug
  42.  
  43. ../texsub: texsub.o init.o $(LIBNAME)
  44.     gcc -g -o ../texsub texsub.o init.o -L$(INSTALLPATH)/lib -L../lib -lmgl -lm -ldebug
  45.  
  46. ../gears: gears.o init.o $(LIBNAME)
  47.     gcc -g -o ../gears gears.o init.o -L$(INSTALLPATH)/lib -L../lib -lmgl -lm -ldebug
  48.  
  49. ../smtest: smtest.o init.o $(LIBNAME)
  50.     gcc -g -o ../smtest smtest.o init.o -L$(INSTALLPATH)/lib -L../lib -lmgl -lm -ldebug
  51.  
  52. ../warp: warp.o init.o $(LIBNAME)
  53.     gcc -g -o ../warp warp.o init.o -L$(INSTALLPATH)/lib -L../lib -lmgl -lm -ldebug
  54.  
  55.  
  56. $(LIBNAME): $(LIBOBJ)
  57.     $(AR) rcs $(LIBNAME) $(LIBOBJ)
  58.     -mkdir /$(INSTALLPATH)/include/mgl
  59.     cp $(LIBNAME) $(INSTALLPATH)/lib
  60.     cp ../include/mgl/*.h $(INSTALLPATH)/include/mgl
  61.  
  62. $(EXENAME): $(EXEOBJ) $(LIBNAME)
  63.     gcc -g -o $(EXENAME) $(EXEOBJ) -L$(INSTALLPATH)/lib -L../lib  -lmgl -lm -ldebug
  64.  
  65. depend:
  66.     makedepend $(INCLUDE) src/*.c
  67.  
  68.  
  69.